package com.atstudy.obj;

import java.io.Serializable;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/29 14:28
 * @copyright: 博为峰
 */
public class Student implements Serializable {

    private static final long serialVersionUID = -8983764327764918319L;
    public String name;
    public int age;
    //静态
    public static String sex;
    //瞬时
    public transient double balance;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", balance=" + balance +
                '}';
    }
}
